package cn.pli.bike.utils;

import android.os.Build;

/**
 * Created by Edward on 2017/11/8.
 */

public class APIVersionUtil {

    private APIVersionUtil(){}

    /**
     *  当前版本大于或等于
     * @param apiLevel
     * @return
     */
    public static boolean isAtLeast(int apiLevel){
        return Build.VERSION.SDK_INT >= apiLevel;
    }

    /**
     * 当前版本低于
     * @param apiLevel
     * @return
     */
    public static boolean isLowerThan(int apiLevel){
        return Build.VERSION.SDK_INT < apiLevel;
    }
}
